<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <%@include file="/WEB-INF/jsp/common/meta.jsp" %>
    <title>药品流通</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/resource/fb-classic/css/reset.css">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/resource/fb-classic/css/ypsc.css">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/resource/fb-classic/css/good-table.css">
    <style>
        html {
            visibility: visible;
        }
        input {
            background-color: #101f5b;
            border: 1px solid #0f2f73;
            border-radius: 4px;
            padding: 5px 15px 5px 15px;
            width: 300px;
            color:#7fdbff;
        }
        select {
            background-color: #101f5b;
            border: 1px solid #0f2f73;
            border-radius: 4px;
            padding: 5px 15px 5px 15px;
            width: 300px;
            color:#7fdbff;
        }

        #search_click{ margin-top:20px; height:40px;}
        #search_click a
        {

            text-decoration:none;
            background:#101f5b;;
            color:#97B8C9;

            padding: 5px 15px 5px 15px;
            font-size:16px;
            font-family: 微软雅黑,宋体,Arial,Helvetica,Verdana,sans-serif;
            font-weight:bold;
            border-radius:3px;

            -webkit-transition:all linear 0.30s;
            -moz-transition:all linear 0.30s;
            transition:all linear 0.30s;

        }
        #search_click a:hover { background:#385f9e; }
    </style>
</head>
<body>
    <div class="ui-main">
        <div class="ui-main-search">
            <div class="ui-main-search-grid">
                <form id="J_form" fb-ui="formhelper">
                    <table>
                        <colgroup>
                            <col style="width: 12%"/>
                            <col style="width: 35%"/>
                            <col style="width: 12%"/>
                            <col style="width: 35%"/>
                            <col style="width: 12%"/>
                            <col style="width: 6%"/>
                        </colgroup>
                        <tr>
                            <th style="color:#97B8C9">企业名称：</th>
                            <td>
                                <input name="managerName" id="managerName" style="color:#ffffff"
                                       fb-width="100%"
                                       fb-placeholder="请输入企业名称"
                                       fb-ui="textfield"/>

                            </td>
                            <th style="color:#7fdbff;visibility:hidden">区域：</th>
                            <td style="visibility:hidden">
                                <select  name="busiDistId" id="busiDistId">
                                </select>
                            </td>
                            <td >
                                <div id="search_click">
                                    <a id="J_search">查 询</a>
                                </div>
                            </td>

                        </tr>
                    </table>
                </form>
            </div>
        </div>

    <div id="J_list" class="good-table scroll"></div>

    <div id="J_pager" class="pager2"></div>

</div>

<%@include file="/WEB-INF/jsp/common/fb.jsp" %>

<script type="text/x-handlebars-template" id="J_list_tmpl">

    <div class="good-table-header">
        <table>
            <colgroup>
                <col style="width: 3%">
                <col style="width: 15%">
                <col style="width: 7%">
                <col style="width: 7%">
                <col style="width: 15%">
                <col style="width: 11%">
                <col style="width: 10%">
                <col style="width: 24%">
            </colgroup>
            <thead>
            <tr>
                {{each col as $value}}
                <th class="text-center">{{$value}}</th>
                {{/each}}
            </tr>
            </thead>
        </table>
    </div>
    <div class="good-table-body" style="height: 420px">
        <table>
            <colgroup>
                <col style="width: 3%">
                <col style="width: 15%">
                <col style="width: 7%">
                <col style="width: 7%">
                <col style="width: 15%">
                <col style="width: 11%">
                <col style="width: 10%">
                <col style="width: 24%">
            </colgroup>
            <tbody>
            {{each data as $value}}
                <tr>
                    <td class="text-center">{{$value.sqNo}}</td>
                    {{if $value.corpName}}  <td class="text-center">{{$value.corpName}}</td> {{else}} <td class="text-center"></td>{{/if}}
                    {{if $value.legalPersonName}}<td class="text-center">{{$value.legalPersonName}}</td>{{else}} <td class="text-center"></td>{{/if}}
                    {{if $value.corpPrincipalName}}<td class="text-center">{{$value.corpPrincipalName}}</td>{{else}} <td class="text-center"></td>{{/if}}
                    {{if $value.regAddress}}<td class="text-center">{{$value.regAddress}}</td>{{else}} <td class="text-center"></td>{{/if}}
                    {{if $value.licenseNo}}<td class="text-center">{{$value.licenseNo}}</td>{{else}} <td class="text-center"></td>{{/if}}
                    {{if $value.licenseValidTo}}<td class="text-center">{{$value.licenseValidTo}}</td>{{else}} <td class="text-center"></td>{{/if}}
                    {{if $value.workingScope}}<td class="text-center">{{$value.workingScope}}</td>{{else}} <td class="text-center"></td>{{/if}}
                </tr>
            {{/each}}

            </tbody>
        </table>
    </div>

    
</script>
<script>
	fb.app("ypjg.ypltlistApp", function () {
		Firebird.create("yplt.listApp");
	});
</script>
</body>
</html>